package com.zfei.gfb.device.permit;

import com.google.common.base.Objects;

import java.util.List;

public class Menu {
    private String menu;
    private List<Button> buttons;

    public String getMenu() {
        return menu;
    }

    public void setMenu(String menu) {
        this.menu = menu;
    }

    public List<Button> getButtons() {
        return buttons;
    }

    public void setButtons(List<Button> buttons) {
        this.buttons = buttons;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Menu menu1 = (Menu) o;
        return Objects.equal(menu, menu1.menu);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(menu);
    }
}
